![]() |
SetCPixel |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Sets the color of an individual pixel to the color that most closely matches the RGB color that you specify in the cPix parameter.
void SetCPixel ( SInt16 h, SInt16 v, const RGBColor *cPix );
The horizontal coordinate of the point at the upper-left corner of the pixel.
The vertical coordinate of the point at the upper-left corner of the pixel.
An RGBColor structure.
On an indexed color system, the SetCPixel function sets the pixel value to the index of the best-matching color in the current device’s CLUT. In a direct environment, the SetCPixel function sets the pixel value to a 16-bit or 32-bit direct pixel value.
To determine the color of an individual pixel, use the GetCPixel function.
The SetCPixel function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)